const mongoose = require('mongoose');
const Schema = mongoose.Schema;
let ObjectId = Schema.Types.ObjectId;

// 创建图片表
const tempPicSchema = new Schema({
  id: {type: ObjectId},//图片id
  path: String,//图片本地路径
  url: String,//图片链接
  createAt: {type: Date, default: Date.now},//生成时间
})

mongoose.model('TempPic',tempPicSchema);
